<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
<script>
	var str="abcdefjhi"

document.write(str.split(" ") + "<br />")
document.write(str.split("") + "<br />")
document.write(str.split(" ",3))
// abcdefjhi
// a,b,c,d,e,f,j,h,i
// abcdefjhi 
</script>
</body>
</html>